﻿using System;
using System.Data;
using System.Data.SqlClient;
using System.Web;

namespace SQL
{
    /// <summary>
    /// This class is used for all database entry for the website.
    /// </summary>
    public class SQLBaseClass
    {
        protected static SqlConnection DatabaseConnection = new SqlConnection();
        protected static DataSet DataS = new DataSet();

        static SQLBaseClass()
        {
            HttpServerUtility Server = HttpContext.Current.Server;
            DatabaseConnection.ConnectionString =
           "Data Source=.\\SQLEXPRESS;AttachDbFilename=" + Server.MapPath("~/App_Data/HighscoreDB.mdf") +
           ";Integrated Security=True;User Instance=True";
            DatabaseConnection.Close();
        }
    }
}
